package com.kaoshi.myweb.webtest.jpatest.respository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;



import org.springframework.data.jpa.repository.Query;

import com.kaoshi.myweb.webtest.entity.UserModel;
import com.kaoshi.myweb.webtest.jpatest.entity.TaskJpaModel;
import com.kaoshi.myweb.webtest.jpatest.entity.UserJpaModel;

public interface TaskJpaRepository extends JpaRepository<TaskJpaModel, Long> {
	@Query(value = "SELECT * FROM ss_task LEFT JOIN ss_user ON ss_task.user_id = ss_user.id", nativeQuery = true)
	public List<TaskJpaModel> getJpaModels();
}
